PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Particles / Points / flexi - predator-prey seminar paper visualization [prepared for illumination] - aids.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=1.000 |
| 9 | fVideoEchoZoom=2.000 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=7 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=1.286 |
| 27 | fWaveSmoothing=0.630 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=1.000 |
| 32 | fWarpScale=3.138 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=1.05300 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.00054 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.650 |
| 45 | wave_g=0.650 |
| 46 | wave_b=0.650 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.010 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=0.000 |
| 54 | ib_size=0.010 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=12.000 |
| 60 | nMotionVectorsY=9.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.900 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=0.400 |
| 85 | wavecode_0_g=0.400 |
| 86 | wavecode_0_b=0.400 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=1 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.00000 |
| 97 | wavecode_1_r=0.000 |
| 98 | wavecode_1_g=0.000 |
| 99 | wavecode_1_b=0.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=1 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=0.000 |
| 111 | wavecode_2_g=0.000 |
| 112 | wavecode_2_b=0.000 |
| 113 | wavecode_2_a=0.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=0 |
| 128 | shapecode_0_sides=4 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=1 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=5.44370 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=1.19381 |
| 138 | shapecode_0_tex_zoom=0.18923 |
| 139 | shapecode_0_r=1.000 |
| 140 | shapecode_0_g=0.970 |
| 141 | shapecode_0_b=1.000 |
| 142 | shapecode_0_a=0.940 |
| 143 | shapecode_0_r2=1.000 |
| 144 | shapecode_0_g2=1.000 |
| 145 | shapecode_0_b2=1.000 |
| 146 | shapecode_0_a2=1.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=1.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shapecode_1_enabled=0 |
| 152 | shapecode_1_sides=4 |
| 153 | shapecode_1_additive=0 |
| 154 | shapecode_1_thickOutline=0 |
| 155 | shapecode_1_textured=1 |
| 156 | shapecode_1_num_inst=1 |
| 157 | shapecode_1_x=0.500 |
| 158 | shapecode_1_y=0.500 |
| 159 | shapecode_1_rad=3.99882 |
| 160 | shapecode_1_ang=0.00000 |
| 161 | shapecode_1_tex_ang=0.00000 |
| 162 | shapecode_1_tex_zoom=0.25005 |
| 163 | shapecode_1_r=1.000 |
| 164 | shapecode_1_g=1.000 |
| 165 | shapecode_1_b=1.000 |
| 166 | shapecode_1_a=0.600 |
| 167 | shapecode_1_r2=1.000 |
| 168 | shapecode_1_g2=1.000 |
| 169 | shapecode_1_b2=1.000 |
| 170 | shapecode_1_a2=0.600 |
| 171 | shapecode_1_border_r=1.000 |
| 172 | shapecode_1_border_g=1.000 |
| 173 | shapecode_1_border_b=1.000 |
| 174 | shapecode_1_border_a=0.000 |
| 175 | shapecode_2_enabled=0 |
| 176 | shapecode_2_sides=18 |
| 177 | shapecode_2_additive=0 |
| 178 | shapecode_2_thickOutline=0 |
| 179 | shapecode_2_textured=1 |
| 180 | shapecode_2_num_inst=10 |
| 181 | shapecode_2_x=0.463 |
| 182 | shapecode_2_y=0.500 |
| 183 | shapecode_2_rad=1.60089 |
| 184 | shapecode_2_ang=0.00000 |
| 185 | shapecode_2_tex_ang=0.00000 |
| 186 | shapecode_2_tex_zoom=0.67634 |
| 187 | shapecode_2_r=1.000 |
| 188 | shapecode_2_g=1.000 |
| 189 | shapecode_2_b=1.000 |
| 190 | shapecode_2_a=1.000 |
| 191 | shapecode_2_r2=0.700 |
| 192 | shapecode_2_g2=0.800 |
| 193 | shapecode_2_b2=0.800 |
| 194 | shapecode_2_a2=1.000 |
| 195 | shapecode_2_border_r=1.000 |
| 196 | shapecode_2_border_g=1.000 |
| 197 | shapecode_2_border_b=1.000 |
| 198 | shapecode_2_border_a=0.000 |
| 199 | shapecode_3_enabled=1 |
| 200 | shapecode_3_sides=16 |
| 201 | shapecode_3_additive=0 |
| 202 | shapecode_3_thickOutline=0 |
| 203 | shapecode_3_textured=0 |
| 204 | shapecode_3_num_inst=120 |
| 205 | shapecode_3_x=0.503 |
| 206 | shapecode_3_y=0.500 |
| 207 | shapecode_3_rad=0.03760 |
| 208 | shapecode_3_ang=0.00000 |
| 209 | shapecode_3_tex_ang=0.00000 |
| 210 | shapecode_3_tex_zoom=1.11234 |
| 211 | shapecode_3_r=1.000 |
| 212 | shapecode_3_g=1.000 |
| 213 | shapecode_3_b=1.000 |
| 214 | shapecode_3_a=1.000 |
| 215 | shapecode_3_r2=0.000 |
| 216 | shapecode_3_g2=0.000 |
| 217 | shapecode_3_b2=0.000 |
| 218 | shapecode_3_a2=0.000 |
| 219 | shapecode_3_border_r=1.000 |
| 220 | shapecode_3_border_g=1.000 |
| 221 | shapecode_3_border_b=1.000 |
| 222 | shapecode_3_border_a=0.040 |
| 223 | shape_3_per_frame1=sample=instance/num_inst; |
| 224 | shape_3_per_frame2=rad=.03+.02*sin(sample); |
| 225 | shape_3_per_frame3= |
| 226 | shape_3_per_frame4=t = time*.08; |
| 227 | shape_3_per_frame5=x = .4* (.4*sin(3*t- 14*sample) + .6*sin(5*t- 10*sample) ); |
| 228 | shape_3_per_frame6=y = .4* (.6*sin(6*t- 11*sample) + .4*sin(4*t- 15*sample) ); |
| 229 | shape_3_per_frame7= |
| 230 | shape_3_per_frame8=p1 = 3*sin(sample*50+.2*time); |
| 231 | shape_3_per_frame9=p2 = 3*sin(sample*80+.1*time); |
| 232 | shape_3_per_frame10= |
| 233 | shape_3_per_frame11=x = .5+x*p1; |
| 234 | shape_3_per_frame12=y = .5+y*p2; |
| 235 | shape_3_per_frame13= |
| 236 | shape_3_per_frame14=r = .4*sin(sample*80); |
| 237 | shape_3_per_frame15=b = .8*sin(sample*66); |
| 238 | shape_3_per_frame16=g = .6*sin(sample*120); |
| 239 | per_frame_1=wave_r = wave_r + 0.650*( 0.60*sin(1.437*time) + 0.40*sin(0.970*time) ); |
| 240 | per_frame_2=wave_g = wave_g + 0.650*( 0.60*sin(1.344*time) + 0.40*sin(0.841*time) ); |
| 241 | per_frame_3=wave_b = wave_b + 0.650*( 0.60*sin(1.251*time) + 0.40*sin(1.055*time) ); |
| 242 | per_frame_4=rot = rot + 0.010*( 0.60*sin(0.381*time) + 0.40*sin(0.579*time) ); |
| 243 | per_frame_5=cx = cx + 0.210*( 0.60*sin(0.374*time) + 0.40*sin(0.294*time) ); |
| 244 | per_frame_6=cy = cy + 0.210*( 0.60*sin(0.393*time) + 0.40*sin(0.223*time) ); |
| 245 | per_frame_7=dx = dx + 0.010*( 0.60*sin(0.234*time) + 0.40*sin(0.277*time) ); |
| 246 | per_frame_8=dy = dy + 0.010*( 0.60*sin(0.284*time) + 0.40*sin(0.247*time) ); |
| 247 | per_frame_9=decay = decay - 0.01*equal(frame%6,0); |
| 248 | per_frame_10=dx = dx + dx_residual; |
| 249 | per_frame_11=dy = dy + dy_residual; |
| 250 | per_frame_12=bass_thresh = above(bass_att,bass_thresh)*2 + (1-above(bass_att,bass_thresh))*((bass_thresh-1.3)*0.96+1.3); |
| 251 | per_frame_13=dx_residual = (equal(bass_thresh,2.13)*0.016*sin(time*7) + (1-equal(bass_thresh,2.13))*dx_residual)*0.9; |
| 252 | per_frame_14=dy_residual = (equal(bass_thresh,2.13)*0.012*sin(time*9) + (1-equal(bass_thresh,2.13))*dy_residual)*0.9; |
| 253 | per_frame_15=wave_x = wave_x - dx_residual*7; |
| 254 | per_frame_16=wave_y = wave_y - dy_residual*7; |
| 255 | warp_1=`shader_body |
| 256 | warp_2=`{ |
| 257 | warp_3=` float2 d = texsize.zw * 8; |
| 258 | warp_4=` float3 dx = ( 2*GetBlur1(uv + float2(1,0)*d) - 2*GetBlur1(uv-float2(1,0)*d) )*0.5; |
| 259 | warp_5=` float3 dy = ( 2*GetBlur1(uv + float2(0,1)*d) - 2*GetBlur1(uv-float2(0,1)*d) )*0.5; |
| 260 | warp_6=` |
| 261 | warp_7=`ret.x = tex2d(sampler_fc_main, uv + float2(dx.x,dy.x)*texsize.zw*4).x; |
| 262 | warp_8=`ret.y = tex2d(sampler_fc_main, uv + float2(dx.y,dy.y)*texsize.zw*4).y; |
| 263 | warp_9=`ret.z = tex2d(sampler_fc_main, uv + float2(dx.z,dy.z)*texsize.zw*4).z; |
| 264 | warp_10=` |
| 265 | warp_11=`ret -= (ret.yzx + ret.zxy) - 0.001; |
| 266 | warp_12=`float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw * 1.2 + rand_frame.xy; |
| 267 | warp_13=`ret += (tex2D(sampler_noise_lq, dither_uv).xyz-0.6) *0.04; |
| 268 | warp_14=` |
| 269 | warp_15=`} |
| 270 | comp_1=`sampler sampler_fc_sunrise; |
| 271 | comp_2=`float2 factorA, factorB, product; |
| 272 | comp_3=`float2 numerator, denominator, fraction; |
| 273 | comp_4=`shader_body |
| 274 | comp_5=`{ |
| 275 | comp_6=`float2 uvo = uv; |
| 276 | comp_7=`uv = (uv-0.5); |
| 277 | comp_8=`factorA = uv+ float2(q1,q2); |
| 278 | comp_9=`factorB = float2(8,0); |
| 279 | comp_10=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 280 | comp_11=`float2 uv1 = product; |
| 281 | comp_12=`factorA = uv+ float2(q3,q4); |
| 282 | comp_13=`factorB = float2(8,0); |
| 283 | comp_14=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 284 | comp_15=`float2 uv2 = product; |
| 285 | comp_16=`factorA = uv+ float2(q5,q6); |
| 286 | comp_17=`factorB = float2(8,0); |
| 287 | comp_18=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 288 | comp_19=`float2 uv3 = product; |
| 289 | comp_20=`factorA = uv+ float2(q7,q8); |
| 290 | comp_21=`factorB = float2(8,0); |
| 291 | comp_22=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 292 | comp_23=`float2 uv4 = product; |
| 293 | comp_24=`factorA = uv1; |
| 294 | comp_25=`factorB = uv2; |
| 295 | comp_26=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 296 | comp_27=`float2 uv12 = product; |
| 297 | comp_28=`factorA = uv3; |
| 298 | comp_29=`factorB = uv4; |
| 299 | comp_30=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 300 | comp_31=`float2 uv34 = product; |
| 301 | comp_32=`factorA = uv12; |
| 302 | comp_33=`factorB = uv34; |
| 303 | comp_34=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); |
| 304 | comp_35=`numerator = float2(1,0); |
| 305 | comp_36=`denominator = product; |
| 306 | comp_37=`fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, // the fractions real part |
| 307 | comp_38=` numerator.y*denominator.x - numerator.x*denominator.y)/ // the fractions imaginary part |
| 308 | comp_39=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 309 | comp_40=`uv = fraction*(16); |
| 310 | comp_41=`uv = lerp(0.5 + (uvo-0.5)*(2+(bass_att-treb_att)*0.02),uv+0.5,0.5); |
| 311 | comp_42=` |
| 312 | comp_43=`float l = length(uv-0.5); |
| 313 | comp_44=`uv = 0.5 + (1.0 - abs( frac( uv * 0.5 ) * 2 - 1.0 )-0.5); // Eo.S. mirror code with cutted borders |
| 314 | comp_45=` |
| 315 | comp_46=`ret = GetPixel(uv).y*float3(1,0.6,0); |
| 316 | comp_47=`ret = lerp(saturate(ret),0,GetBlur2(uv).z*0.5); |
| 317 | comp_48=`ret = lerp(saturate(ret),float3(0.3,0.4,0.5),GetBlur2(uv).x*4); |
| 318 | comp_49=`ret = lerp(saturate(ret),1,GetPixel(uv).z); |
| 319 | comp_50=`ret = lerp(saturate(ret),0,GetPixel(uv).x*0.6); |
| 320 | comp_51=`ret*=saturate(1.6-pow(l,6)*0.004); |
| 321 | comp_52=`} |